package com.origin.oss.service.impl;

import com.origin.oss.entity.FileUploadTask;
import com.origin.oss.mapper.FileUploadTaskDetailMapper;
import com.origin.oss.mapper.FileUploadTaskMapper;
import com.origin.oss.service.FileUploadTaskService;
import org.springframework.stereotype.Service;

/**
 * @author origin
 * @date 2024/2/5 13:18
 */
@Service
public class FileUploadTaskServiceImpl implements FileUploadTaskService {

    private final FileUploadTaskMapper fileUploadTaskMapper;
    private final FileUploadTaskDetailMapper fileUploadTaskDetailMapper;

    public FileUploadTaskServiceImpl(FileUploadTaskMapper fileUploadTaskMapper, FileUploadTaskDetailMapper fileUploadTaskDetailMapper) {
        this.fileUploadTaskMapper = fileUploadTaskMapper;
        this.fileUploadTaskDetailMapper = fileUploadTaskDetailMapper;
    }

    @Override
    public void insertUploadTask(FileUploadTask fileUploadTask) {
        fileUploadTaskMapper.insert(fileUploadTask);
    }
}
